[hybi] WebSocket sub protocol name.

Fumitoshi Ukai (鵜飼文敏) <ukai@chromium.org> Mon, 07 December 2009 04:58 UTC

Return-Path: <ukai@google.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D52103A69FA for <hybi@core3.amsl.com>; Sun, 6 Dec 2009 20:58:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.376
X-Spam-Level:
X-Spam-Status: No, score=-105.376 tagged_above=-999 required=5 tests=[AWL=0.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bm1Xi0qBy2z4 for <hybi@core3.amsl.com>; Sun, 6 Dec 2009 20:58:42 -0800 (PST)
Received: from smtp-out.google.com (smtp-out.google.com [216.239.45.13]) by core3.amsl.com (Postfix) with ESMTP id EBBF23A69F7 for <hybi@ietf.org>; Sun, 6 Dec 2009 20:58:41 -0800 (PST)
Received: from spaceape14.eur.corp.google.com (spaceape14.eur.corp.google.com [172.28.16.148]) by smtp-out.google.com with ESMTP id nB74wVPU026386 for <hybi@ietf.org>; Sun, 6 Dec 2009 20:58:31 -0800
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1260161912; bh=9G2/2j/WR/1RdxaCJldBUmdQ8ns=; h=MIME-Version:Sender:From:Date:Message-ID:Subject:To:Content-Type; b=r5OG19mfoR2ZdCxUZ5/e+OOS3FJoBBnIt8Nv5xKcNYNasfy5tHEn3kE7C2CP0sEpg HwnAuPWhSyq0Jys3kOLwQ==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:sender:from:date: x-google-sender-auth:message-id:subject:to:content-type:x-system-of-record; b=vPPuqjE+JR6hXIf/C7RQaWJDmmCgH8dH78aNmFrWHKfU3qIVj+Fk6wNP8YzJ+D9aB fEa70UDUq/TCjvt6qlljQ==
Received: from pxi35 (pxi35.prod.google.com [10.243.27.35]) by spaceape14.eur.corp.google.com with ESMTP id nB74wQgX022515 for <hybi@ietf.org>; Sun, 6 Dec 2009 20:58:28 -0800
Received: by pxi35 with SMTP id 35so254571pxi.18 for <hybi@ietf.org>; Sun, 06 Dec 2009 20:58:26 -0800 (PST)
MIME-Version: 1.0
Sender: ukai@google.com
Received: by 10.114.253.23 with SMTP id a23mr10563983wai.155.1260161906265; Sun, 06 Dec 2009 20:58:26 -0800 (PST)
From: "Fumitoshi Ukai (鵜飼文敏)" <ukai@chromium.org>
Date: Mon, 07 Dec 2009 13:58:06 +0900
X-Google-Sender-Auth: 06eeba472b9d656a
Message-ID: <de17d48e0912062058u72db7455x4e211cb05da19070@mail.gmail.com>
To: hybi@ietf.org, whatwg@lists.whatwg.org
Content-Type: multipart/alternative; boundary="0016e6878693c84ff5047a1c4e9f"
X-System-Of-Record: true
Subject: [hybi] WebSocket sub protocol name.
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Dec 2009 04:58:42 -0000

Hi,

At 1.130 of "The Web Socket API", it adds the sub-protocol name must be an
ASCII string with no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR)
characters in it.
But "The Web Socket protocol" 3.1 Parsing Web Socket URLs, says
   1.   If /protocol/ is specified but is either the empty string or
        contains characters that are not in the range U+0021 to U+007E,
        then fail this algorithm.

Alghough I think it should not be a part of "Parsing Web Socket URLs", but
the /protocol/ here is talking about sub-protocol name in Web Socket
constructor, right?
I'm wondering why "The Web Socket API" has loose definition about
sub-protocol name.  If sub-protocol name contains a character less than
U+0021, it fails and throw a SYNTAX_ERR exception ?

-- 
ukai